package com.example.ktpspringboot.mapper;

import com.example.ktpspringboot.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface StudentMapper {

    public void insertStudentByPhone(Student student);

    public void insertStudentByEmail(Student student);

    public Student queryByAccount(String account);

    public Student queryByEmail(String email);

    public Student queryByPhone(String phone);

    public List<Student> queryByCourseCode(String courseCode);

    public int countStudentsByCourseCode(String courseCode);

}
